

#include "bitmap.h"


bitmap::bitmap(char *fileName){


        ifstream fin(fileName);
       
       //fstream fin (fileName);
       
       
       if(!fin){
       
         cout<<"Cannot open file "<<fileName;
	 return;
       
       }
          
       
       fin >> bitmapfileheader;
       
       fin >> bitmapinfo;  	
     



}


bitmap::bitmap(){




}

bitmap::~bitmap(){
}

bool bitmap::printInfo(){

    
     
   cout<<" Image Height :" << bitmapinfo.bmiHeader.biHeight<<endl;
   cout<<" Image Width :" << bitmapinfo.bmiHeader.biWidth<<endl;
   
   
      

} 
